<?php
/**
 * Created by PhpStorm.
 * User: gyq
 * Date: 2018/11/12
 * Time: 21:06
 */

namespace app\api\controller;


use app\api\service\Token as TokenService;
use think\Controller;

class BaseController extends Controller
{
//    用户和管理员都能访问的接口权限
    protected function checkPrimaryScope()
    {
        TokenService::needPrimaryScope();
    }

//    只有用户才能访问的接口权限
    protected function checkExclusiveScope()
    {
        TokenService::needExclusiveScope();
    }
}